<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!-- jquery validate -->
<script src="<%=basePath %>resource/js/jquery.validate.min.js" ></script>


	<ul class="breadcrumb">
		<li><a href="#">主页</a></li>
		<li><a href="#">添加用户</a></li>
	</ul>
</div>

<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div data-original-title="" class="box-header well">
                <h2><i class="glyphicon glyphicon-edit"></i> 添加用户</h2>

                <div class="box-icon">
                  
                    <a class="btn btn-minimize btn-round btn-default" href="#"><i class="glyphicon glyphicon-chevron-up"></i></a>
                    <a class="btn btn-close btn-round btn-default" href="#"><i class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            

            <div class="box-content">
                <form id="editForm" class="form-horizontal" action="<%=basePath%>admin/userAdd!userAdd.action" method="post">
				  <div class="form-group">
				    <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
				    <div class="col-sm-4">
				      <input type="text" name="user.name" class="form-control required" id="inputEmail3" placeholder="用户名">
				    </div>
				  </div>
				  
				  <div class="form-group">
				    <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
				    <div class="col-sm-4">
				      <input type="password" name="user.password"  class="form-control" id="inputPassword3" placeholder="密码">
				    </div>
				  </div>
				  
				   <div class="form-group">
				    <label for="inputPassword3" class="col-sm-2 control-label">确认密码</label>
				    <div class="col-sm-4">
				      <input type="password" name="comfirmPassword" class="form-control" id="inputPassword3" placeholder="确认密码">
				    </div>
				  </div>
				  
				  <div class="form-group">
				    <div class="col-sm-offset-2 col-sm-10">
				      <div class="checkbox">
				        <label>
				          <input type="checkbox" name="user.status" value="1"> 启用
				        </label>
				      </div>
				    </div>
				  </div>
				  <div class="form-group">
				    <div class="col-sm-offset-2 col-sm-10">
				      <button onclick="dataVali(this.form);" type="button" class="btn btn-primary">提交</button>
				    </div>
				  </div>
				</form>

            </div>
        </div>
    </div>
    <!--/span-->